import { ref } from 'vue'

export default {
  setup() {
    const isMac = ref(false)

    // 检测用户是否使用了 macOS
    const os = navigator.platform
    isMac.value = os.includes('Mac')

    return {
      isMac
    }
  }
}